<?php
error_reporting(E_ALL);

if($argc < 2)
{
	echo "Usegae:\n\t";
	echo "php rankUrl.php {url}\n";
	exit;
}

chdir('../');
require_once 'bootstrap.php';

Ezer_Config::createFromPath('engines_config.xml', LogicManager::ENGINES_CONFIG);

Ezer_Log::setLogger(new StdoutLogger());

$url = $argv[1];
$ranks = LogicManager::getBackLinks($url);

var_dump(count($ranks));
